package com.ushio.gougouwangguo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ushio.gougouwangguo.entity.mysql.MaterialsType;
import com.ushio.gougouwangguo.mapper.MaterialsTypeMapper;
import com.ushio.gougouwangguo.service.IMaterialsTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 物资类型表 服务实现类
 * </p>
 *
 * @author 张文凯
 * @since 2025-10-14
 */
@Service
public class MaterialsTypeServiceImpl extends ServiceImpl<MaterialsTypeMapper, MaterialsType> implements IMaterialsTypeService {

    @Autowired
    MaterialsTypeMapper materialsTypeMapper;

    @Override
    public List<MaterialsType> getMaterialsTypeAll() {

        List<MaterialsType> materialsTypeList = materialsTypeMapper.selectList(new LambdaQueryWrapper<>());

        return materialsTypeList;
    }
}
